<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="java.util.*" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<jsp:useBean id="errors" class="java.util.HashMap" scope="request" />

<%@ include file="html_head.jsp" %>

<body>

<form action="?action=login" method="post">
<% if ( errors.size() > 0 && errors.get("general") != null) { %> <%=errors.get("general") %> <% } %>
<br />
<label for="username">Kasutajanimi</label>
<input type="text" id="username" name="username" />
<% if ( errors.size() > 0 && errors.get("username") != null) { %> <%=errors.get("username") %> <% } %>
<br />
<label for="password">Parool</label>
<input type="password" name="password" id="password" />
<% if ( errors.size() > 0 && errors.get("password") != null) { %> <%=errors.get("password") %> <% } %>
<br />
<label>
<input type="checkbox" name="admin" value="1" />
<input type="hidden" name="admin" value="0" /> 
Oled admin?</label>
<br />
<input type="submit" name="submit" value="Logi sisse" /> 


</form>

</body>
</html>